package com.cc.factory2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.cc.entity.annotation.*;

public class Test03 {
    public static void main(String[] args) {
        ApplicationContext context = 
                new ClassPathXmlApplicationContext("beans-annotation.xml");
        User user = (User) context.getBean("abc");
        System.out.println(user);
    }
}
